home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / INTERNET / CSTEVAL.ZIP / CSTOOLS.BAS < prev    next >
Encoding:
BASIC Source File  |  1996-08-26  |  34.2 KB  |  877 lines

  1. '
  2. ' Catalyst SocketTools 1.0
  3. ' Copyright (c) 1995-1996, Catalyst Development Corp. All rights reserved.
  4. '
  5. ' This file contains the constants and function declarations used
  6. ' with the SocketTools TCP/IP development toolkit for Visual Basic 3.0
  7. '
  8.  
  9. '
  10. ' General constants used with most of the controls
  11. '
  12. Global Const INVALID_HANDLE = -1
  13. Global Const CONTROL_ERRIGNORE = 0
  14. Global Const CONTROL_ERRDISPLAY = 1
  15.  
  16. '
  17. ' Windows Sockets error codes. These error codes are returned by
  18. ' the DNS (Domain Name Service), Ping and SocketWrench controls.
  19. '
  20. Global Const WSABASEERR = 24000
  21. Global Const WSAEINTR = 24004
  22. Global Const WSAEBADF = 24009
  23. Global Const WSAEACCES = 24013
  24. Global Const WSAEFAULT = 24014
  25. Global Const WSAEINVAL = 24022
  26. Global Const WSAEMFILE = 24024
  27. Global Const WSAEWOULDBLOCK = 24035
  28. Global Const WSAEINPROGRESS = 24036
  29. Global Const WSAEALREADY = 24037
  30. Global Const WSAENOTSOCK = 24038
  31. Global Const WSAEDESTADDRREQ = 24039
  32. Global Const WSAEMSGSIZE = 24040
  33. Global Const WSAEPROTOTYPE = 24041
  34. Global Const WSAENOPROTOOPT = 24042
  35. Global Const WSAEPROTONOSUPPORT = 24043
  36. Global Const WSAESOCKTNOSUPPORT = 24044
  37. Global Const WSAEOPNOTSUPP = 24045
  38. Global Const WSAEPFNOSUPPORT = 24046
  39. Global Const WSAEAFNOSUPPORT = 24047
  40. Global Const WSAEADDRINUSE = 24048
  41. Global Const WSAEADDRNOTAVAIL = 24049
  42. Global Const WSAENETDOWN = 24050
  43. Global Const WSAENETUNREACH = 24051
  44. Global Const WSAENETRESET = 24052
  45. Global Const WSAECONNABORTED = 24053
  46. Global Const WSAECONNRESET = 24054
  47. Global Const WSAENOBUFS = 24055
  48. Global Const WSAEISCONN = 24056
  49. Global Const WSAENOTCONN = 24057
  50. Global Const WSAESHUTDOWN = 24058
  51. Global Const WSAETOOMANYREFS = 24059
  52. Global Const WSAETIMEDOUT = 24060
  53. Global Const WSAECONNREFUSED = 24061
  54. Global Const WSAELOOP = 24062
  55. Global Const WSAENAMETOOLONG = 24063
  56. Global Const WSAEHOSTDOWN = 24064
  57. Global Const WSAEHOSTUNREACH = 24065
  58. Global Const WSAENOTEMPTY = 24066
  59. Global Const WSAEPROCLIM = 24067
  60. Global Const WSAEUSERS = 24068
  61. Global Const WSAEDQUOT = 24069
  62. Global Const WSAESTALE = 24070
  63. Global Const WSAEREMOTE = 24071
  64. Global Const WSASYSNOTREADY = 24091
  65. Global Const WSAVERNOTSUPPORTED = 24092
  66. Global Const WSANOTINITIALISED = 24093
  67. Global Const WSAHOST_NOT_FOUND = 25001
  68. Global Const WSATRY_AGAIN = 25002
  69. Global Const WSANO_RECOVERY = 25003
  70. Global Const WSANO_DATA = 25004
  71. Global Const WSANO_ADDRESS = 25004
  72.  
  73. '
  74. ' Constants used with the Domain Name Service (DNS) cotrol
  75. '
  76. ' DNS client actions
  77. '
  78. Global Const DNS_ACTION_NONE = 0
  79. Global Const DNS_ACTION_CANCEL = 1
  80.  
  81. '
  82. ' Constants used with the File Transfer Protocol (FTP) control.
  83. '
  84. ' The error codes are returned by the LastError property and
  85. ' passed as an argument to the LastError event.
  86. '
  87. Global Const FTP_ERROR = -1
  88. Global Const ERROR_FTP_NOHANDLES = 22001    ' no free handles
  89. Global Const ERROR_FTP_ALLOCMEM = 22002     ' no global memory
  90. Global Const ERROR_FTP_NOTOWNER = 22003     ' not session owner
  91. Global Const ERROR_FTP_NETSTART = 22004     ' cannot initialize network
  92. Global Const ERROR_FTP_HOSTNAME = 22005     ' invalid hostname
  93. Global Const ERROR_FTP_SOCKET = 22006       ' cannot create socket
  94. Global Const ERROR_FTP_ACCEPT = 22007       ' cannot accept connection
  95. Global Const ERROR_FTP_CONNECT = 22008      ' cannot connect to server
  96. Global Const ERROR_FTP_PEERNAME = 22009     ' cannot get peer information
  97. Global Const ERROR_FTP_BIND = 22010         ' cannot bind socket
  98. Global Const ERROR_FTP_LISTEN = 22011       ' cannot listen for connection
  99. Global Const ERROR_FTP_PARAM = 22012        ' invalid parameter
  100. Global Const ERROR_FTP_HANDLE = 22013       ' invalid FTP handle
  101. Global Const ERROR_FTP_SELECT = 22014       ' socket select error
  102. Global Const ERROR_FTP_READ = 22015         ' cannot read from socket
  103. Global Const ERROR_FTP_WRITE = 22016        ' cannot write to socket
  104. Global Const ERROR_FTP_EOF = 22017          ' end of file on data connection
  105. Global Const ERROR_FTP_BUSY = 22018         ' connection in use
  106. Global Const ERROR_FTP_NOTBUSY = 22019      ' connection is not in use
  107. Global Const ERROR_FTP_TIMEOUT = 22020      ' timeout waiting for socket
  108. Global Const ERROR_FTP_SYNC = 22021         ' internal synchronization error
  109. Global Const ERROR_FTP_CLOSED = 22022       ' server closed connection
  110. Global Const ERROR_FTP_NOTREADY = 22023     ' server is not ready, try again
  111. Global Const ERROR_FTP_NOTAVAIL = 22024     ' remote server is not available
  112. Global Const ERROR_FTP_SERVICE = 22025      ' unknown problem with remote server
  113. Global Const ERROR_FTP_DATAPORT = 22026     ' unable to set data port
  114. Global Const ERROR_FTP_DATAOPEN = 22027     ' data port already open
  115. Global Const ERROR_FTP_DATACLOSED = 22028   ' data port is closed
  116. Global Const ERROR_FTP_ABORTED = 22029      ' file transfer aborted
  117. Global Const ERROR_FTP_READONLY = 22030     ' data connection is read-only
  118. Global Const ERROR_FTP_WRITEONLY = 22031    ' data connection is write-only
  119. Global Const ERROR_FTP_FILETYPE = 22032     ' unable to set file type
  120. Global Const ERROR_FTP_PASSIVE = 22033      ' data connection is passive
  121. Global Const ERROR_FTP_ADDRESS = 22034      ' cannot determine passive address
  122. Global Const ERROR_FTP_CREATEFILE = 22035   ' cannot create local file
  123. Global Const ERROR_FTP_OPENFILE = 22036     ' cannot open local file
  124. Global Const ERROR_FTP_READFILE = 22037     ' cannot read local file
  125. Global Const ERROR_FTP_WRITEFILE = 22038    ' cannot write local file
  126. Global Const ERROR_FTP_LOGIN = 22039        ' cannot login to remote server
  127. Global Const ERROR_FTP_OPENFAIL = 22040     ' cannot open data connection
  128. Global Const ERROR_FTP_FILEBUSY = 22041     ' file unavailable
  129. Global Const ERROR_FTP_NOSPACE = 22042      ' insufficient storage space
  130. Global Const ERROR_FTP_COMMAND = 22043      ' command not recognized
  131. Global Const ERROR_FTP_ARGUMENT = 22044     ' invalid command argument
  132. Global Const ERROR_FTP_CMDIMP = 22045       ' command not implemented
  133. Global Const ERROR_FTP_CMDSEQ = 22046       ' invalid command sequence
  134. Global Const ERROR_FTP_NOLOGIN = 22047      ' not logged in
  135. Global Const ERROR_FTP_NOACCOUNT = 22048    ' account required
  136. Global Const ERROR_FTP_ACCESS = 22049       ' cannot access file on server
  137. Global Const ERROR_FTP_FILEALLOC = 22050    ' file exceeded storage allocation
  138. Global Const ERROR_FTP_FILENAME = 22051     ' invalid file name
  139. Global Const ERROR_FTP_UNEXPECTED = 22052   ' unexpected server error
  140.  
  141. '
  142. ' Result codes returned by the FTP server. The ResultCode property
  143. ' specifies the code from the last operation.
  144. '
  145. Global Const FTP_REPLY_RESTMARK = 110   ' restart marker reply
  146. Global Const FTP_REPLY_NOTREADY = 120   ' service available in n minutes
  147. Global Const FTP_REPLY_DATAOPEN = 125   ' data connection open, transfer started
  148. Global Const FTP_REPLY_FILEOK = 150     ' file status okay
  149. Global Const FTP_REPLY_CMDOK = 200      ' command okay
  150. Global Const FTP_REPLY_CMDIGN = 202     ' command ignored
  151. Global Const FTP_REPLY_SYSSTAT = 211    ' system status
  152. Global Const FTP_REPLY_DIRSTAT = 212    ' directory status
  153. Global Const FTP_REPLY_FILESTAT = 213   ' file status
  154. Global Const FTP_REPLY_HELPMSG = 214    ' human-readable help response
  155. Global Const FTP_REPLY_READY = 220      ' service ready for new user
  156. Global Const FTP_REPLY_CLOSED = 221     ' service closing connection
  157. Global Const FTP_REPLY_DATAOPENED = 225 ' data connection open
  158. Global Const FTP_REPLY_DATACLOSED = 226 ' closing data connection
  159. Global Const FTP_REPLY_PASVMODE = 227   ' entering passive mode
  160. Global Const FTP_REPLY_LOGIN = 230      ' user logged in
  161. Global Const FTP_REPLY_DONE = 250       ' requested file action completed
  162. Global Const FTP_REPLY_GETPASS = 331    ' username okay, need password
  163. Global Const FTP_REPLY_GETACCT = 332    ' need account for login
  164. Global Const FTP_REPLY_PENDING = 350    ' file action pending
  165. Global Const FTP_REPLY_OPENFAIL = 425   ' cannot open data connection
  166. Global Const FTP_REPLY_ABORTED = 426    ' conenct closed, transfer aborted
  167. Global Const FTP_REPLY_NOTAVAIL = 450   ' file is not available
  168. Global Const FTP_REPLY_LOCALERR = 451   ' local error
  169. Global Const FTP_REPLY_NOSPACE = 452    ' no space on server system
  170. Global Const FTP_REPLY_BADSYN = 500     ' syntax error
  171. Global Const FTP_REPLY_BADARG = 501     ' invalid command arguments
  172. Global Const FTP_REPLY_BADCMD = 502     ' command not implemented
  173. Global Const FTP_REPLY_BADSEQ = 503     ' bad sequence of commands
  174. Global Const FTP_REPLY_BADPARM = 504    ' bad command parameter
  175. Global Const FTP_REPLY_NOLOGIN = 530    ' user not logged in
  176. Global Const FTP_REPLY_ACCTREQ = 532    ' account required for storing files
  177. Global Const FTP_REPLY_NOFILE = 550     ' file unavailable
  178. Global Const FTP_REPLY_BADPAGE = 551    ' page type unknown
  179. Global Const FTP_REPLY_EXQUOTA = 552    ' exceeded file storage quota
  180. Global Const FTP_REPLY_BADFILE = 553    ' invalid file name
  181.  
  182. Global Const FTP_FILE_READ = 0          ' read from file on remote host
  183. Global Const FTP_FILE_WRITE = 1         ' write to file on remote host
  184. Global Const FTP_FILE_APPEND = 2        ' append to file on remote host
  185. Global Const FTP_FILE_UNIQUE = 3        ' create unique file on remote host
  186.  
  187. '
  188. ' FTP file types
  189. '
  190. Global Const FILE_TYPE_ASCII = 0
  191. Global Const FILE_TYPE_EBCDIC = 1
  192. Global Const FILE_TYPE_IMAGE = 2
  193.  
  194. '
  195. ' FTP client actions
  196. '
  197. Global Const FTP_ACTION_NONE = 0
  198. Global Const FTP_ACTION_CONNECT = 1
  199. Global Const FTP_ACTION_LOGIN = 2
  200. Global Const FTP_ACTION_LOGOUT = 3
  201. Global Const FTP_ACTION_DISCONNECT = 4
  202. Global Const FTP_ACTION_GETFILE = 5
  203. Global Const FTP_ACTION_PUTFILE = 6
  204. Global Const FTP_ACTION_FILELIST = 7
  205. Global Const FTP_ACTION_OPEN = 8
  206. Global Const FTP_ACTION_CREATE = 9
  207. Global Const FTP_ACTION_APPEND = 10
  208. Global Const FTP_ACTION_CLOSE = 11
  209. Global Const FTP_ACTION_CANCEL = 12
  210. Global Const FTP_ACTION_DELETE = 13
  211. Global Const FTP_ACTION_RENAME = 14
  212. Global Const FTP_ACTION_GETCWD = 15
  213. Global Const FTP_ACTION_CHDIR = 16
  214. Global Const FTP_ACTION_MKDIR = 17
  215. Global Const FTP_ACTION_RMDIR = 18
  216.  
  217. '
  218. ' FTP client states
  219. '
  220. Global Const FTP_CLIENT_UNUSED = 0
  221. Global Const FTP_CLIENT_IDLE = 1
  222. Global Const FTP_CLIENT_CONNECTING = 2
  223. Global Const FTP_CLIENT_LOGIN = 3
  224. Global Const FTP_CLIENT_TRANSFER = 4
  225.  
  226. '
  227. ' Internet Control Message Protocol (Ping) control constants
  228. '
  229. ' The error codes are returned by the LastError property and
  230. ' passed as an argument to the LastError event.
  231. '
  232. Global Const ICMP_ERROR = -1
  233. Global Const ERROR_ICMP_NOHANDLES = 22701
  234. Global Const ERROR_ICMP_ALLOCMEM = 22702
  235. Global Const ERROR_ICMP_NOTOWNER = 22703
  236. Global Const ERROR_ICMP_NETSTART = 22704
  237. Global Const ERROR_ICMP_HANDLE = 22705
  238. Global Const ERROR_ICMP_PARAM = 22706
  239. Global Const ERROR_ICMP_ADDRESS = 22707
  240. Global Const ERROR_ICMP_SOCKET = 22708
  241. Global Const ERROR_ICMP_PACKETSIZE = 22709
  242. Global Const ERROR_ICMP_PACKETDATA = 22710
  243. Global Const ERROR_ICMP_READ = 22711
  244. Global Const ERROR_ICMP_WRITE = 22712
  245. Global Const ERROR_ICMP_BUSY = 22713
  246. Global Const ERROR_ICMP_ABORTED = 22714
  247. Global Const ERROR_ICMP_TIMEOUT = 22715
  248.  
  249. '
  250. ' Ping client actions
  251. '
  252. Global Const PING_ACTION_NONE = 0
  253. Global Const PING_ACTION_ECHO = 1
  254. Global Const PING_ACTION_CANCEL = 2
  255. Global Const PING_ACTION_RESET = 3
  256.  
  257. '
  258. ' Image viewer control constants
  259. '
  260. Global Const INVALID_IMAGE = 0
  261.  
  262. '
  263. ' Image types supported by the control
  264. '
  265. Global Const IMAGE_TYPE_NONE = 0
  266. Global Const IMAGE_TYPE_BITMAP = 1
  267. Global Const IMAGE_TYPE_GIF = 2
  268. Global Const IMAGE_TYPE_PCX = 3
  269. Global Const IMAGE_TYPE_JPEG = 4
  270. Global Const IMAGE_TYPE_XBM = 5
  271. Global Const IMAGE_TYPE_EXTERN = 6
  272.  
  273. '
  274. ' Network News Transfer Protocol (NNTP) control constants
  275. '
  276. ' The error codes are returned by the LastError property and
  277. ' passed as an argument to the LastError event.
  278. '
  279. Global Const NNTP_ERROR = -1
  280. Global Const ERROR_NNTP_HANDLE = 22301
  281. Global Const ERROR_NNTP_PARAM = 22302
  282. Global Const ERROR_NNTP_INIT = 22303
  283. Global Const ERROR_NNTP_ALLOC = 22304
  284. Global Const ERROR_NNTP_HOSTNAME = 22305
  285. Global Const ERROR_NNTP_SOCKET = 22306
  286. Global Const ERROR_NNTP_CONNECT = 22307
  287. Global Const ERROR_NNTP_SELECT = 22308
  288. Global Const ERROR_NNTP_TIMEOUT = 22309
  289. Global Const ERROR_NNTP_SERVER = 22310
  290. Global Const ERROR_NNTP_READ = 22311
  291. Global Const ERROR_NNTP_WRITE = 22312
  292. Global Const ERROR_NNTP_CLOSED = 22313
  293. Global Const ERROR_NNTP_BUSY = 22314
  294. Global Const ERROR_NNTP_ABORTED = 22315
  295. Global Const ERROR_NNTP_NOSERVICE = 22316
  296. Global Const ERROR_NNTP_BADGROUP = 22317
  297. Global Const ERROR_NNTP_NOGROUP = 22318
  298. Global Const ERROR_NNTP_EMPTYGROUP = 22319
  299. Global Const ERROR_NNTP_NOARTICLE = 22320
  300. Global Const ERROR_NNTP_LASTARTICLE = 22321
  301. Global Const ERROR_NNTP_FIRSTARTICLE = 22322
  302. Global Const ERROR_NNTP_BADARTICLE = 22323
  303. Global Const ERROR_NNTP_NOTRANSFER = 22324
  304. Global Const ERROR_NNTP_BADTRANSFER = 22325
  305. Global Const ERROR_NNTP_REJECTED = 22326
  306. Global Const ERROR_NNTP_NOPOSTING = 22327
  307. Global Const ERROR_NNTP_BADPOST = 22328
  308. Global Const ERROR_NNTP_COMMAND = 22329
  309. Global Const ERROR_NNTP_RESTRICTED = 22330
  310. Global Const ERROR_NNTP_FAULT = 22331
  311. Global Const ERROR_NNTP_AUTHINFO = 22332
  312. Global Const ERROR_NNTP_AUTHFAIL = 22333
  313. Global Const ERROR_NNTP_AUTHTYPE = 22334
  314. Global Const ERROR_NNTP_NOAUTH = 22335
  315.  
  316. '
  317. ' Result codes returned by the NNTP server. The ResultCode property
  318. ' specifies the code from the last operation.
  319. '
  320. Global Const NNTP_REPLY_READY = 200
  321. Global Const NNTP_REPLY_SELECTED = 211
  322. Global Const NNTP_REPLY_GROUPLIST = 215
  323. Global Const NNTP_REPLY_ARTICLE = 220
  324. Global Const NNTP_REPLY_HEADER = 221
  325. Global Const NNTP_REPLY_BODY = 222
  326. Global Const NNTP_REPLY_STATUS = 223
  327. Global Const NNTP_REPLY_NEWARTICLES = 230
  328. Global Const NNTP_REPLY_NEWGROUPS = 231
  329. Global Const NNTP_REPLY_TRANSFERRED = 235
  330. Global Const NNTP_REPLY_POSTED = 240
  331. Global Const NNTP_REPLY_GROUPTITLE = 282
  332. Global Const NNTP_REPLY_XFERARTICLE = 335
  333. Global Const NNTP_REPLY_AUTHCONT = 350
  334. Global Const NNTP_REPLY_AUTHPASS = 381
  335. Global Const NNTP_REPLY_POSTARTICLE = 340
  336. Global Const NNTP_REPLY_AUTHSIMPLE = 450
  337. Global Const NNTP_REPLY_AUTHORIGIN = 480
  338.  
  339. '
  340. ' NNTP client actions
  341. '
  342. Global Const NNTP_ACTION_NONE = 0
  343. Global Const NNTP_ACTION_CONNECT = 1
  344. Global Const NNTP_ACTION_DISCONNECT = 2
  345. Global Const NNTP_ACTION_LISTGROUPS = 3
  346. Global Const NNTP_ACTION_NEWGROUPS = 4
  347. Global Const NNTP_ACTION_LISTARTICLES = 5
  348. Global Const NNTP_ACTION_GETHEADER = 6
  349. Global Const NNTP_ACTION_GETARTICLE = 7
  350. Global Const NNTP_ACTION_NEXTARTICLE = 8
  351. Global Const NNTP_ACTION_PREVARTICLE = 9
  352. Global Const NNTP_ACTION_NEWARTICLE = 10
  353. Global Const NNTP_ACTION_POSTARTICLE = 11
  354. Global Const NNTP_ACTION_AUTHENTICATE = 12
  355.  
  356. '
  357. ' NNTP client states
  358. '
  359. Global Const NNTP_CLIENT_UNUSED = 0
  360. Global Const NNTP_CLIENT_IDLE = 1
  361. Global Const NNTP_CLIENT_CONNECTING = 2
  362. Global Const NNTP_CLIENT_GROUPLIST = 3
  363. Global Const NNTP_CLIENT_ARTICLELIST = 4
  364. Global Const NNTP_CLIENT_READING = 5
  365. Global Const NNTP_CLIENT_POSTING = 6
  366.  
  367. '
  368. ' Post Office Protocol (POP) client control constants
  369. '
  370. ' The error codes are returned by the LastError property and
  371. ' passed as an argument to the LastError event.
  372. '
  373. Global Const POP_ERROR = -1
  374. Global Const ERROR_POP_HANDLE = 22301   ' invalid handle to pop client
  375. Global Const ERROR_POP_PARAM = 22302    ' invalid paramter passed to function
  376. Global Const ERROR_POP_INIT = 22303     ' unable to initialize socket library
  377. Global Const ERROR_POP_ALLOC = 22304    ' unable to allocate memory
  378. Global Const ERROR_POP_HOSTNAME = 22305 ' unable to resolve hostname
  379. Global Const ERROR_POP_SOCKET = 22306   ' unable to create socket
  380. Global Const ERROR_POP_CONNECT = 22307  ' unable to connect to remote host
  381. Global Const ERROR_POP_SELECT = 22308   ' unable to select socket
  382. Global Const ERROR_POP_TIMEOUT = 22309  ' timeout reading socket
  383. Global Const ERROR_POP_SERVER = 22310   ' invalid POP server response
  384. Global Const ERROR_POP_READ = 22311     ' unable to read socket
  385. Global Const ERROR_POP_WRITE = 22312    ' unable to write socket
  386. Global Const ERROR_POP_LOGIN = 22313    ' unable to login to server
  387. Global Const ERROR_POP_NOLOGIN = 22314  ' not logged in to server
  388. Global Const ERROR_POP_MESGID = 22315   ' invalid message identifier
  389. Global Const ERROR_POP_CLOSED = 22316   ' server connection closed
  390. Global Const ERROR_POP_BUSY = 22317     ' server is busy
  391.  
  392. '
  393. ' POP client actions
  394. '
  395. Global Const POP_ACTION_NONE = 0
  396. Global Const POP_ACTION_CONNECT = 1
  397. Global Const POP_ACTION_DISCONNECT = 2
  398. Global Const POP_ACTION_GETHDR = 3
  399. Global Const POP_ACTION_GETMSG = 4
  400. Global Const POP_ACTION_DELMSG = 5
  401. Global Const POP_ACTION_RESET = 6
  402. Global Const POP_ACTION_CANCEL = 7
  403.  
  404. '
  405. ' POP client states
  406. '
  407. Global Const POP_CLIENT_UNUSED = 0
  408. Global Const POP_CLIENT_IDLE = 1
  409. Global Const POP_CLIENT_CONNECTING = 2
  410. Global Const POP_CLIENT_LOGIN = 3
  411. Global Const POP_CLIENT_TRANSFER = 4
  412.  
  413. '
  414. ' Simple Mail Transfer Protocol (SMTP) client control constants
  415. '
  416. ' The error codes are returned by the LastError property and
  417. ' passed as an argument to the LastError event.
  418. '
  419. Global Const SMTP_ERROR = -1
  420. Global Const ERROR_SMTP_HANDLE = 22201  ' invalid handle to SMTP client
  421. Global Const ERROR_SMTP_PARAM = 22202   ' invalid paramter passed to function
  422. Global Const ERROR_SMTP_INIT = 22203    ' unable to initialize socket library
  423. Global Const ERROR_SMTP_ALLOC = 22204   ' unable to allocate memory
  424. Global Const ERROR_SMTP_HOSTNAME = 22205 ' unable to resolve hostname
  425. Global Const ERROR_SMTP_SOCKET = 22206  ' unable to create socket
  426. Global Const ERROR_SMTP_CONNECT = 22207 ' unable to connect to remote host
  427. Global Const ERROR_SMTP_SELECT = 22208  ' unable to select socket
  428. Global Const ERROR_SMTP_TIMEOUT = 22209 ' timeout reading socket
  429. Global Const ERROR_SMTP_SERVER = 22210  ' invalid SMTP server response
  430. Global Const ERROR_SMTP_READ = 22211    ' unable to read socket
  431. Global Const ERROR_SMTP_WRITE = 22212   ' unable to write socket
  432. Global Const ERROR_SMTP_BUSY = 22213    ' server connection in use
  433. Global Const ERROR_SMTP_DATA = 22214    ' server receiving message data
  434. Global Const ERROR_SMTP_NODATA = 22215  ' no data received
  435. Global Const ERROR_SMTP_CLOSED = 22216  ' server connection closed
  436. Global Const ERROR_SMTP_CANCEL = 22217  ' client operation was canceled
  437.  
  438. '
  439. ' SMTP client actions
  440. '
  441. Global Const SMTP_ACTION_NONE = 0
  442. Global Const SMTP_ACTION_CONNECT = 1
  443. Global Const SMTP_ACTION_DISCONNECT = 2
  444. Global Const SMTP_ACTION_ADDRESS = 3
  445. Global Const SMTP_ACTION_SENDMAIL = 4
  446. Global Const SMTP_ACTION_EXPAND = 5
  447. Global Const SMTP_ACTION_VERIFY = 6
  448. Global Const SMTP_ACTION_RESET = 7
  449. Global Const SMTP_ACTION_CANCEL = 8
  450.  
  451. '
  452. ' SMTP client states
  453. '
  454. Global Const SMTP_CLIENT_UNUSED = 0
  455. Global Const SMTP_CLIENT_IDLE = 1
  456. Global Const SMTP_CLIENT_CONNECTING = 2
  457. Global Const SMTP_CLIENT_ADDRESSING = 3
  458. Global Const SMTP_CLIENT_COMPOSING = 4
  459. Global Const SMTP_CLIENT_SENDING = 5
  460.  
  461. '
  462. ' Remote Access Service (RAS) control contants
  463. '
  464.  
  465. Global Const RAS_ACTION_CONNECT = 1
  466. Global Const RAS_ACTION_DISCONNECT = 2
  467.  
  468. '
  469. ' The error codes are returned by the LastError property and
  470. ' passed as an argument to the LastError event. These are the
  471. ' same codes returned by the RAS library, with 25000 added
  472. ' to the base value
  473. '
  474. Global Const ERROR_INVALID_PORT_HANDLE = 25601
  475. Global Const ERROR_PORT_ALREADY_OPEN = 25602
  476. Global Const ERROR_BUFFER_TOO_SMALL = 25603
  477. Global Const ERROR_WRONG_INFO_SPECIFIED = 25604
  478. Global Const ERROR_CANNOT_SET_PORT_INFO = 25605
  479. Global Const ERROR_PORT_NOT_CONNECTED = 25606
  480. Global Const ERROR_EVENT_INVALID = 25607
  481. Global Const ERROR_DEVICE_DOES_NOT_EXIST = 25608
  482. Global Const ERROR_DEVICETYPE_DOES_NOT_EXIST = 25609
  483. Global Const ERROR_INVALID_BUFFER = 25610
  484. Global Const ERROR_ROUTE_NOT_AVAILABLE = 25611
  485. Global Const ERROR_ROUTE_NOT_ALLOCATED = 25612
  486. Global Const ERROR_INVALID_COMPRESSION_SPECIFIED = 25613
  487. Global Const ERROR_OUT_OF_BUFFERS = 25614
  488. Global Const ERROR_PORT_NOT_FOUND = 25615
  489. Global Const ERROR_ASYNC_REQUEST_PENDING = 25616
  490. Global Const ERROR_ALREADY_DISCONNECTING = 25617
  491. Global Const ERROR_PORT_NOT_OPEN = 25618
  492. Global Const ERROR_PORT_DISCONNECTED = 25619
  493. Global Const ERROR_NO_ENDPOINTS = 25620
  494. Global Const ERROR_CANNOT_OPEN_PHONEBOOK = 25621
  495. Global Const ERROR_CANNOT_LOAD_PHONEBOOK = 25622
  496. Global Const ERROR_CANNOT_FIND_PHONEBOOK_ENTRY = 25623
  497. Global Const ERROR_CANNOT_WRITE_PHONEBOOK = 25624
  498. Global Const ERROR_CORRUPT_PHONEBOOK = 25625
  499. Global Const ERROR_CANNOT_LOAD_STRING = 25626
  500. Global Const ERROR_KEY_NOT_FOUND = 25627
  501. Global Const ERROR_DISCONNECTION = 25628
  502. Global Const ERROR_REMOTE_DISCONNECTION = 25629
  503. Global Const ERROR_HARDWARE_FAILURE = 25630
  504. Global Const ERROR_USER_DISCONNECTION = 25631
  505. Global Const ERROR_INVALID_SIZE = 25632
  506. Global Const ERROR_PORT_NOT_AVAILABLE = 25633
  507. Global Const ERROR_CANNOT_PROJECT_CLIENT = 25634
  508. Global Const ERROR_UNKNOWN = 25635
  509. Global Const ERROR_WRONG_DEVICE_ATTACHED = 25636
  510. Global Const ERROR_BAD_STRING = 25637
  511. Global Const ERROR_REQUEST_TIMEOUT = 25638
  512. Global Const ERROR_CANNOT_GET_LANA = 25639
  513. Global Const ERROR_NETBIOS_ERROR = 25640
  514. Global Const ERROR_SERVER_OUT_OF_RESOURCES = 25641
  515. Global Const ERROR_NAME_EXISTS_ON_NET = 25642
  516. Global Const ERROR_SERVER_GENERAL_NET_FAILURE = 25643
  517. Global Const ERROR_AUTH_INTERNAL = 25645
  518. Global Const ERROR_RESTRICTED_LOGON_HOURS = 25646
  519. Global Const ERROR_ACCT_DISABLED = 25647
  520. Global Const ERROR_PASSWD_EXPIRED = 25648
  521. Global Const ERROR_NO_DIALIN_PERMISSION = 25649
  522. Global Const ERROR_SERVER_NOT_RESPONDING = 25650
  523. Global Const ERROR_FROM_DEVICE = 25651
  524. Global Const ERROR_UNRECOGNIZED_RESPONSE = 25652
  525. Global Const ERROR_MACRO_NOT_FOUND = 25653
  526. Global Const ERROR_MACRO_NOT_DEFINED = 25654
  527. Global Const ERROR_MESSAGE_MACRO_NOT_FOUND = 25655
  528. Global Const ERROR_DEFAULTOFF_MACRO_NOT_FOUND = 25656
  529. Global Const ERROR_FILE_COULD_NOT_BE_OPENED = 25657
  530. Global Const ERROR_DEVICENAME_TOO_LONG = 25658
  531. Global Const ERROR_DEVICENAME_NOT_FOUND = 25659
  532. Global Const ERROR_NO_RESPONSES = 25660
  533. Global Const ERROR_NO_COMMAND_FOUND = 25661
  534. Global Const ERROR_WRONG_KEY_SPECIFIED = 25662
  535. Global Const ERROR_UNKNOWN_DEVICE_TYPE = 25663
  536. Global Const ERROR_ALLOCATING_MEMORY = 25664
  537. Global Const ERROR_PORT_NOT_CONFIGURED = 25665
  538. Global Const ERROR_DEVICE_NOT_READY = 25666
  539. Global Const ERROR_READING_INI_FILE = 25667
  540. Global Const ERROR_NO_CONNECTION = 25668
  541. Global Const ERROR_BAD_USAGE_IN_INI_FILE = 25669
  542. Global Const ERROR_READING_SECTIONNAME = 25670
  543. Global Const ERROR_READING_DEVICETYPE = 25671
  544. Global Const ERROR_READING_DEVICENAME = 25672
  545. Global Const ERROR_READING_USAGE = 25673
  546. Global Const ERROR_READING_MAXCONNECTBPS = 25674
  547. Global Const ERROR_READING_MAXCARRIERBPS = 25675
  548. Global Const ERROR_LINE_BUSY = 25676
  549. Global Const ERROR_VOICE_ANSWER = 25677
  550. Global Const ERROR_NO_ANSWER = 25678
  551. Global Const ERROR_NO_CARRIER = 25679
  552. Global Const ERROR_NO_DIALTONE = 25680
  553. Global Const ERROR_IN_COMMAND = 25681
  554. Global Const ERROR_WRITING_SECTIONNAME = 25682
  555. Global Const ERROR_WRITING_DEVICETYPE = 25683
  556. Global Const ERROR_WRITING_DEVICENAME = 25684
  557. Global Const ERROR_WRITING_MAXCONNECTBPS = 25685
  558. Global Const ERROR_WRITING_MAXCARRIERBPS = 25686
  559. Global Const ERROR_WRITING_USAGE = 25687
  560. Global Const ERROR_WRITING_DEFAULTOFF = 25688
  561. Global Const ERROR_READING_DEFAULTOFF = 25689
  562. Global Const ERROR_EMPTY_INI_FILE = 25690
  563. Global Const ERROR_AUTHENTICATION_FAILURE = 25691
  564. Global Const ERROR_PORT_OR_DEVICE = 25692
  565. Global Const ERROR_NOT_BINARY_MACRO = 25693
  566. Global Const ERROR_DCB_NOT_FOUND = 25694
  567. Global Const ERROR_STATE_MACHINES_NOT_STARTED = 25695
  568. Global Const ERROR_STATE_MACHINES_ALREADY_STARTED = 25696
  569. Global Const ERROR_PARTIAL_RESPONSE_LOOPING = 25697
  570. Global Const ERROR_UNKNOWN_RESPONSE_KEY = 25698
  571. Global Const ERROR_RECV_BUF_FULL = 25699
  572. Global Const ERROR_CMD_TOO_LONG = 25700
  573. Global Const ERROR_UNSUPPORTED_BPS = 25701
  574. Global Const ERROR_UNEXPECTED_RESPONSE = 25702
  575. Global Const ERROR_INTERACTIVE_MODE = 25703
  576. Global Const ERROR_BAD_CALLBACK_NUMBER = 25704
  577. Global Const ERROR_INVALID_AUTH_STATE = 25705
  578. Global Const ERROR_WRITING_INITBPS = 25706
  579. Global Const ERROR_INVALID_WIN_HANDLE = 25707
  580. Global Const ERROR_NO_PASSWORD = 25708
  581. Global Const ERROR_NO_USERNAME = 25709
  582. Global Const ERROR_CANNOT_START_STATE_MACHINE = 25710
  583. Global Const ERROR_GETTING_COMMSTATE = 25711
  584. Global Const ERROR_SETTING_COMMSTATE = 25712
  585. Global Const ERROR_COMM_FUNCTION = 25713
  586. Global Const ERROR_CONFIGURATION_PROBLEM = 25714
  587. Global Const ERROR_X25_DIAGNOSTIC = 25715
  588. Global Const ERROR_TOO_MANY_LINE_ERRORS = 25716
  589. Global Const ERROR_OVERRUN = 25717
  590. Global Const ERROR_ACCT_EXPIRED = 25718
  591. Global Const ERROR_CHANGING_PASSWORD = 25719
  592. Global Const ERROR_NO_ACTIVE_ISDN_LINES = 25720
  593. Global Const ERROR_NO_ISDN_CHANNELS_AVAILABLE = 25721
  594.  
  595. '
  596. ' RAS control states
  597. '
  598. Global Const RAS_UNUSED = -1
  599. Global Const RAS_OPENPORT = 0
  600. Global Const RAS_PORTOPENED = 1
  601. Global Const RAS_CONNECTDEV = 2
  602. Global Const RAS_DEVCONNECTED = 3
  603. Global Const RAS_ALLDEVCONNECTED = 4
  604. Global Const RAS_AUTHENTICATE = 5
  605. Global Const RAS_AUTHENTICATED = 14
  606. Global Const RAS_PREPCALLBACK = 15
  607. Global Const RAS_MODEMRESET = 16
  608. Global Const RAS_WAITFORCALL = 17
  609. Global Const RAS_STARTAUTH = 19
  610. Global Const RAS_CALLBACKDONE = 20
  611. Global Const RAS_NETLOGON = 21
  612. Global Const RAS_PAUSED = 4096
  613. Global Const RAS_RETRYAUTH = 4097
  614. Global Const RAS_CALLBACK = 4098
  615. Global Const RAS_PASSEXPIRED = 4099
  616. Global Const RAS_CONNECTED = 8192
  617. Global Const RAS_DISCONNECTED = 8193
  618.  
  619. '
  620. ' Remote command client actions
  621. '
  622. Global Const RCMD_ACTION_NONE = 0
  623. Global Const RCMD_ACTION_LOGIN = 1
  624. Global Const RCMD_ACTION_EXECUTE = 2
  625. Global Const RCMD_ACTION_COMMAND = 3
  626. Global Const RCMD_ACTION_DISCONNECT = 4
  627.  
  628. '
  629. ' Remote command client states
  630. '
  631. Global Const RCMD_CLIENT_UNUSED = 0
  632. Global Const RCMD_CLIENT_IDLE = 1
  633. Global Const RCMD_CLIENT_CONNECTING = 2
  634. Global Const RCMD_CLIENT_RECEIVING = 3
  635. Global Const RCMD_CLIENT_SENDING = 4
  636. Global Const RCMD_CLIENT_CLOSING = 5
  637.  
  638. '
  639. ' Telnet (Network Terminal) client control constants
  640. '
  641. ' The error codes are returned by the LastError property and
  642. ' passed as an argument to the LastError event.
  643. '
  644. Global Const TELNET_ERROR = -1
  645. Global Const ERROR_TELNET_NOHANDLES = 22101   ' no free handles
  646. Global Const ERROR_TELNET_ALLOCMEM = 22102    ' no global memory
  647. Global Const ERROR_TELNET_NOTOWNER = 22103    ' not session owner
  648. Global Const ERROR_TELNET_NETSTART = 22104    ' cannot initialize network
  649. Global Const ERROR_TELNET_HOSTNAME = 22105    ' invalid hostname
  650. Global Const ERROR_TELNET_SOCKET = 22106      ' cannot create socket
  651. Global Const ERROR_TELNET_CONNECT = 22108     ' cannot connect to server
  652. Global Const ERROR_TELNET_PEERNAME = 22109    ' cannot get peer information
  653. Global Const ERROR_TELNET_PARAM = 22112       ' invalid parameter
  654. Global Const ERROR_TELNET_HANDLE = 22113      ' invalid TELNET handle
  655. Global Const ERROR_TELNET_SELECT = 22114      ' socket select error
  656. Global Const ERROR_TELNET_READ = 22115        ' cannot read from socket
  657. Global Const ERROR_TELNET_RDBUF = 22117       ' receive buffer is full
  658. Global Const ERROR_TELNET_WRITE = 22118       ' cannot write to socket
  659. Global Const ERROR_TELNET_WRBUF = 22119       ' send buffer is empty
  660. Global Const ERROR_TELNET_BUSY = 22120        ' connection in use
  661. Global Const ERROR_TELNET_NOTBUSY = 22121     ' connection is not in use
  662. Global Const ERROR_TELNET_TIMEOUT = 22122     ' timeout waiting for socket
  663. Global Const ERROR_TELNET_SYNC = 22123        ' internal synchronization error
  664. Global Const ERROR_TELNET_OPTION = 22124      ' unsupported TELNET option
  665. Global Const ERROR_TELNET_CLOSED = 22125      ' server closed connection
  666.  
  667. '
  668. ' Telnet client actions
  669. '
  670. Global Const TELNET_ACTION_CONNECT = 1
  671. Global Const TELNET_ACTION_DISCONNECT = 2
  672.  
  673. '
  674. ' Telnet client states
  675. '
  676. Global Const TELNET_CLIENT_UNUSED = 0
  677. Global Const TELNET_CLIENT_IDLE = 1
  678. Global Const TELNET_CLIENT_CONNECTING = 2
  679. Global Const TELNET_CLIENT_RECEIVING = 3
  680. Global Const TELNET_CLIENT_SENDING = 4
  681. Global Const TELNET_CLIENT_CLOSING = 5
  682.  
  683. '
  684. ' Terminal emulation actions
  685. '
  686. Global Const TERM_ACTION_CLRSCR = 1
  687. Global Const TERM_ACTION_CLREOL = 2
  688. Global Const TERM_ACTION_INSLINE = 3
  689. Global Const TERM_ACTION_DELLINE = 4
  690. Global Const TERM_ACTION_SCROLLUP = 5
  691. Global Const TERM_ACTION_SCROLLDN = 6
  692. Global Const TERM_ACTION_REFRESH = 7
  693.  
  694. '
  695. ' World Wide Web control contants
  696. '
  697. ' The error codes are returned by the LastError property and
  698. ' passed as an argument to the LastError event.
  699. '
  700. Global Const HTTP_ERROR = -1
  701. Global Const ERROR_HTTP_HANDLE = 22401       ' invalid handle to client
  702. Global Const ERROR_HTTP_PARAM = 22402        ' invalid paramter
  703. Global Const ERROR_HTTP_INIT = 22403         ' unable to initialize library
  704. Global Const ERROR_HTTP_ALLOC = 22404        ' unable to allocate memory
  705. Global Const ERROR_HTTP_HOSTNAME = 22405     ' unable to resolve hostname
  706. Global Const ERROR_HTTP_SOCKET = 22406       ' unable to create socket
  707. Global Const ERROR_HTTP_CONNECT = 22407      ' unable to connect to remote host
  708. Global Const ERROR_HTTP_SELECT = 22408       ' unable to select socket
  709. Global Const ERROR_HTTP_TIMEOUT = 22409      ' timeout reading socket
  710. Global Const ERROR_HTTP_SERVER = 22410       ' invalid HTTP server response
  711. Global Const ERROR_HTTP_NOFILE = 22411       ' cannot open local file
  712. Global Const ERROR_HTTP_OPEN = 22412         ' cannot open local file
  713. Global Const ERROR_HTTP_READ = 22413         ' unable to read socket
  714. Global Const ERROR_HTTP_WRITE = 22414        ' unable to write socket
  715. Global Const ERROR_HTTP_EOF = 22415          ' end-of-file on socket
  716. Global Const ERROR_HTTP_BUSY = 22416         ' server is busy
  717. Global Const ERROR_HTTP_CANCELED = 22417     ' operation has been canceled
  718. Global Const ERROR_HTTP_MOVED = 22418        ' resource has been moved
  719. Global Const ERROR_HTTP_NOTMODIFIED = 22419  ' resource has not been modified
  720. Global Const ERROR_HTTP_BADREQUEST = 22420   ' bad request to server
  721. Global Const ERROR_HTTP_UNAUTHORIZED = 22421 ' unauthorized request to server
  722. Global Const ERROR_HTTP_PAYMENT = 22422      ' payment required for resource
  723. Global Const ERROR_HTTP_FORBIDDEN = 22423    ' access to resource forbidden
  724. Global Const ERROR_HTTP_NOTFOUND = 22424     ' resource not found on server
  725. Global Const ERROR_HTTP_BADMETHOD = 22425    ' invalid method for this resource
  726. Global Const ERROR_HTTP_NOTACCEPTED = 22426  ' resource not acceptable to client
  727. Global Const ERROR_HTTP_PROXYAUTH = 22427    ' proxy authentication required
  728. Global Const ERROR_HTTP_GONE = 22428         ' resource is permanently removed
  729. Global Const ERROR_HTTP_INTERNAL = 22429     ' internal server error
  730. Global Const ERROR_HTTP_NOMETHOD = 22430     ' method not supported by server
  731. Global Const ERROR_HTTP_BADGATEWAY = 22431   ' invalid response from gateway
  732. Global Const ERROR_HTTP_UNAVAILABLE = 22432  ' server is unavailable
  733. Global Const ERROR_HTTP_GATETIMEOUT = 22433  ' server gateway timeout
  734. Global Const ERROR_HTTP_UNEXPECTED = 22434   ' unexpected error
  735.  
  736. '
  737. ' Web client actions
  738. '
  739. Global Const WEB_ACTION_LOAD = 1
  740. Global Const WEB_ACTION_RELOAD = 2
  741. Global Const WEB_ACTION_UNLOAD = 3
  742. Global Const WEB_ACTION_NEXT = 4
  743. Global Const WEB_ACTION_PREV = 5
  744. Global Const WEB_ACTION_CANCEL = 6
  745. Global Const WEB_ACTION_RESET = 7
  746. Global Const WEB_ACTION_REFRESH = 8
  747. Global Const WEB_ACTION_SEARCH = 9
  748. Global Const WEB_ACTION_LINEUP = 10
  749. Global Const WEB_ACTION_LINEDOWN = 11
  750. Global Const WEB_ACTION_PAGEUP = 12
  751. Global Const WEB_ACTION_PAGEDOWN = 13
  752.  
  753. '
  754. ' Web client states
  755. '
  756. Global Const WEB_CLIENT_UNUSED = 0
  757. Global Const WEB_CLIENT_IDLE = 1
  758. Global Const WEB_CLIENT_CONNECT = 2
  759. Global Const WEB_CLIENT_COMMAND = 3
  760. Global Const WEB_CLIENT_LOAD = 4
  761. Global Const WEB_CLIENT_UNLOAD = 5
  762.  
  763. '
  764. ' Web client resource types
  765. '
  766. Global Const WEB_RESOURCE_UNKNOWN = 0
  767. Global Const WEB_RESOURCE_HTML = 1
  768. Global Const WEB_RESOURCE_TEXT = 2
  769. Global Const WEB_RESOURCE_IMAGE = 3
  770.  
  771. '
  772. ' SocketWrench error response values
  773. '
  774. Global Const SOCKET_ERRIGNORE = 0
  775. Global Const SOCKET_ERRDISPLAY = 1
  776.  
  777. '
  778. ' SocketWrench control actions
  779. '
  780. Global Const SOCKET_OPEN = 1
  781. Global Const SOCKET_CONNECT = 2
  782. Global Const SOCKET_LISTEN = 3
  783. Global Const SOCKET_ACCEPT = 4
  784. Global Const SOCKET_CANCEL = 5
  785. Global Const SOCKET_FLUSH = 6
  786. Global Const SOCKET_CLOSE = 7
  787. Global Const SOCKET_DISCONNECT = 7
  788. Global Const SOCKET_ABORT = 8
  789.  
  790. '
  791. ' SocketWrench control states
  792. '
  793. Global Const SOCKET_NONE = 0
  794. Global Const SOCKET_IDLE = 1
  795. Global Const SOCKET_LISTENING = 2
  796. Global Const SOCKET_CONNECTING = 3
  797. Global Const SOCKET_ACCEPTING = 4
  798. Global Const SOCKET_RECEIVING = 5
  799. Global Const SOCKET_SENDING = 6
  800. Global Const SOCKET_CLOSING = 7
  801.  
  802. '
  803. ' Address families
  804. '
  805. Global Const AF_UNSPEC = 0
  806. Global Const AF_UNIX = 1
  807. Global Const AF_INET = 2
  808.  
  809. '
  810. ' Socket types
  811. '
  812. Global Const SOCK_STREAM = 1
  813. Global Const SOCK_DGRAM = 2
  814. Global Const SOCK_RAW = 3
  815. Global Const SOCK_RDM = 4
  816. Global Const SOCK_SEQPACKET = 5
  817.  
  818. '
  819. ' Protocol types
  820. '
  821. Global Const IPPROTO_IP = 0
  822. Global Const IPPROTO_ICMP = 1
  823. Global Const IPPROTO_GGP = 2
  824. Global Const IPPROTO_TCP = 6
  825. Global Const IPPROTO_PUP = 12
  826. Global Const IPPROTO_UDP = 17
  827. Global Const IPPROTO_IDP = 22
  828. Global Const IPPROTO_ND = 77
  829. Global Const IPPROTO_RAW = 255
  830. Global Const IPPROTO_MAX = 256
  831.  
  832. '
  833. ' Common ports
  834. '
  835. Global Const IPPORT_ANY = 0
  836. Global Const IPPORT_ECHO = 7
  837. Global Const IPPORT_DISCARD = 9
  838. Global Const IPPORT_SYSTAT = 11
  839. Global Const IPPORT_DAYTIME = 13
  840. Global Const IPPORT_NETSTAT = 15
  841. Global Const IPPORT_FTP = 21
  842. Global Const IPPORT_TELNET = 23
  843. Global Const IPPORT_SMTP = 25
  844. Global Const IPPORT_TIMESERVER = 37
  845. Global Const IPPORT_NAMESERVER = 42
  846. Global Const IPPORT_WHOIS = 43
  847. Global Const IPPORT_MTP = 57
  848. Global Const IPPORT_FINGER = 79
  849. Global Const IPPORT_HTTP = 80
  850. Global Const IPPORT_TFTP = 69
  851. Global Const IPPORT_RESERVED = 1024
  852. Global Const IPPORT_USERRESERVED = 5000
  853.  
  854. '
  855. ' Network addresses
  856. '
  857. Global Const INADDR_ANY = "0.0.0.0"
  858. Global Const INADDR_LOOPBACK = "127.0.0.1"
  859. Global Const INADDR_NONE = "255.255.255.255"
  860.  
  861. '
  862. ' Shutdown values
  863. '
  864. Global Const SOCKET_READ = 0
  865. Global Const SOCKET_WRITE = 1
  866. Global Const SOCKET_READWRITE = 2
  867.  
  868. '
  869. ' Declarations for functions to encode and decode files, typically
  870. ' used as with attachments to mail messages or news articles
  871. '
  872. Declare Function DecodeFile Lib "UUCODE16.DLL" (ByVal InputFile As String) As Integer
  873. Declare Function EncodeFile Lib "UUCODE16.DLL" (ByVal InputFile As String, ByVal OutputFile As String) As Integer
  874. Declare Function DecodeBase64File Lib "UUCODE16.DLL" (ByVal InputFile As String, ByVal OutputFile As String) As Integer
  875. Declare Function EncodeBase64File Lib "UUCODE16.DLL" (ByVal InputFile As String, ByVal OutputFile As String) As Integer
  876.  
  877.